{template modoer_header}
<script type="text/javascript" src="{URLROOT}/static/javascript/validator.js"></script>
<div id="body">
	<div class="link_path"><a href="{url modoer/index}">首页</a>&nbsp;&raquo;&nbsp;注册</div>
	<div class="mainrail rail-border-1">
	<h1 class="rail-h-1 rail-h-bg-1"><!--{if $passport}-->完善帐号<!--{else}-->注册<!--{/if}--></h1>
	<div class="post">
		<!--{if $MOD[closereg]}-->
		<div style="text-align:center">网站关闭了注册功能。<a href="javascript:history.go(-1);">返回</a></div>
		<!--{else}-->
		<div style="float:left;margin-bottom:10px;width:68%;border-right:1px solid #eee;">
			<form method="post" action="{url member/reg/rand/$_G[random]}" onsubmit="return validator(this);">
				<input type="hidden" name="forward" value="$forward" />
				<input type="hidden" name="uniq" value="$user->session_id" />
				<!--{if $passport}-->
				<input type="hidden" name="passport" value="$passport_type">
				<input type="hidden" name="passport_id" value="$passport_id">
				<!--{/if}-->
				<table class="table" border="0" cellspacing="0" cellpadding="0" style="margin:10px 0;">
					<!--{if $title}-->
					<tr>
						<td align="right"></td>
						<td width="*" height="30">$title</td>
					</tr>
					<!--{/if}-->
					<tr>
						<td align="right" width="100" valign="top">用户名：</td>
						<td width="*">
							<input type="text" onblur="check_username(this);" name="username" value="$username" class="t_input" style="width:200px;" validator="{'empty':'N','errmsg':'请填写您的登录用户名。'}" />
							<span id="msg_username" class="formmessage none"></span>
							<div class="formtip">不能大于<span class="font_2">15</span>个字符</div>
						</td>
					</tr>
					<tr>
						<td align="right" valign="top">E-mail：</td>
						<td>
							<input type="text" onblur="check_email(this);" name="email" value="$email" class="t_input" style="width:200px;" validator="{'empty':'N','errmsg':'您未填写邮箱账号。'}" />
							<span id="msg_email" class="formmessage none"></span><br />
							<div class="formtip">邮箱地址字符不能大于<span class="font_2">60</span>个字符</div>
						</td>
					</tr>
					<!--{if $MOD[mobile_verify]}-->
					<tr>
						<td align="right" valign="top"><div class="font14a">手机号：</div></td>
						<td>
							<input type="text" onblur="check_mobile(this);" name="mobile" id="txt_mobile" class="t_input" style="width:200px;" validator="{'empty':'N','errmsg':'您未填写手机并验证手机号。'}" />
							<span id="msg_mobile" class="formmessage none"></span>
							<button id="btn_mobile" type="button" onclick="member_mobile_verify_dialog($('#txt_mobile').val());" class="none">获取认证码</button>
						</td>
					</tr>
					<!--{/if}-->
					<!--{if !$passport || ($passport && $MOD[passport_pw])}-->
					<tr>
						<td align="right" valign="top">登录密码：</td>
						<td>
							<input type="password" name="password" class="t_input" style="width:200px;" validator="{'empty':'N','errmsg':'请填写您的登录密码。'}" />
							<span id="msg_password" class="formmessage none"></span>
							<div class="formtip">至少需要<span class="font_2">6</span>个字符</div>
						</td>
					</tr>
					<tr>
						<td align="right" valign="top">重输密码：</td>
						<td>
							<input type="password" name="password2" class="t_input" style="width:200px;" validator="{'empty':'N','errmsg':'请再次输入登录密码。'}" />
							<span id="msg_password2" class="formmessage none"></span>
							<div class="formtip">再次输入登录密码</div>
						</td>
					</tr>
					<!--{/if}-->
					<!--{if $MOD['seccode_reg']}-->
					<tr>
						<td align="right">验证码：</td>
						<td>
							<!--{if S('seccode_type')=='geetest' }-->
							<!--{print ms_geetest::float()}-->
							<!--{else}-->
							<div id="seccode" class="seccode none"></div>
							<input type="text" name="seccode" class="t_input" style="width:118px;" onblur="check_seccode(this.value);" onfocus="show_seccode();" validator="{'empty':'N','errmsg':'请输入注册验证码'}" />
							<span id="msg_seccode" class="formmessage none"></span>
							<!--{/if}-->
						</td>
					</tr>
					<!--{/if}-->
					<!--{if $MOD[invite_reg] && ($inviter || $invite_message)}-->
					<tr>
						<td align="right">邀请人：</td>
						<td height="30">
							<!--{if $inviter}-->
							{if $inviter}$inviter[username]{else}<span class="font_1">$invite_message</span>{/if}
							<!--{else}-->
							$invite_message
							<!--{/if}-->
						</td>
					</tr>
					<!--{/if}-->
					<!--{if $MOD[showregrule]}-->
					<tr>
						<td align="right" valign="top">注册协议：</td>
						<td colspan="2">
							<textarea rows="5" cols="60" class="txt" style="width:90%;height:100px;" readonly>$MOD[regrule]</textarea>
							<input type="checkbox" id="regrule" value="1" validator="{'empty':'N','errmsg':'您未接受注册协议。'}" />
							<label for="regrule">我接受注册协议</label>
						</td>
					</tr>
					<!--{/if}-->
					<tr>
						<td></td>
						<td colspan="2">
							<button type="submit" value="yes" name="dosubmit" class="button">提交注册</button>
							<!--{if $passport && ($MOD[passport_reg_skip])}-->
							&nbsp;<a href="{url member/passport/op/auto_reg/type/$passport_type}">跳过本地注册</a>
							<!--{/if}-->
						</td>
					</tr>
				</table>
			</form>
		</div>
		<div style="float:right;width:30%;font-size:14px;">
			<!--{if $passport}-->
			<div class="mb10">
				<a href="{url member/passport/op/bind/type/$passport_type}"><img src="{URLROOT}/$_G[tplurl]/img/bind_btn.png" title="绑定已存在帐号" /></a>
			</div>
			<!--{else}-->
			<div class="mb10">
				<a href="{url member/login}"><img src="{URLROOT}/$_G[tplurl]/img/login_btn.png" title="登录已有帐号" /></a>
			</div>
			<!--{if $_G['passport_apis']}-->
			<div class="mb10">
				<span>使用合作网站帐号登录：</span>
				<div class="mt10">
				<!--{loop $_G['passport_apis'] $passport_name $passport_title}-->
					<span style="cursor:pointer;">
						<span onclick="document.location='{url member/login/op/passport_login/type/$passport_name}';" title="$passport_title">
							<img src="{URLROOT}/static/images/passport/{$passport_name}_n.png"  />
						</span>
					</span>
				<!--{/loop}-->  
				</div>              
			</div>
			<!--{/if}-->
			<!--{/if}-->
		</div>
		<div class="clear"></div>
		<!--{/if}-->
	</div>
	</div>
</div>
<!--{eval footer();}-->